package be.idamf.cortizone.examples.tape
{
	import be.idamf.mx.rpc.MockService;
	
	import mx.collections.ArrayCollection;
	import mx.rpc.AsyncToken;

	public class ProductMockService extends MockService
	{
		public function ProductMockService()
		{
			destination = "productService";
		}
		
		public function getProducts():AsyncToken
		{
			var products:ArrayCollection = new ArrayCollection();
			products.addItem({name:"apple"});
			products.addItem({name:"pear"});
			return asyncResult(products, "getProducts");
		}
	}
}